package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻对象 news
 * 
 * @author ruoyi
 * @date 2021-03-03
 */
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 内容摘要 */
    @Excel(name = "内容摘要")
    private String breviary;

    /** 编写时间 */
    @Excel(name = "编写时间")
    private String writeTime;

    /** 新闻中心内容类型 1：公司动态  2：媒体报道  3：行业关注  4：招标信息 */
    @Excel(name = "新闻中心内容类型 1：公司动态  2：媒体报道  3：行业关注  4：招标信息")
    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setBreviary(String breviary) 
    {
        this.breviary = breviary;
    }

    public String getBreviary() 
    {
        return breviary;
    }
    public void setWriteTime(String writeTime) 
    {
        this.writeTime = writeTime;
    }

    public String getWriteTime() 
    {
        return writeTime;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("breviary", getBreviary())
            .append("writeTime", getWriteTime())
            .append("type", getType())
            .toString();
    }
}
